package com.kjsdfgk.hjmdsf.app.api.service;

import com.kjsdfgk.hjmdsf.app.entity.AccountJson;
import com.kjsdfgk.hjmdsf.app.entity.JJKKTokenJson;
import com.kjsdfgk.hjmdsf.app.entity.KjhfsJson;
import com.kjsdfgk.hjmdsf.app.entity.ResultJson;
import com.kjsdfgk.hjmdsf.app.entity.RegJson;
import com.kjsdfgk.hjmdsf.app.entity.XJVideoJson;
import com.kjsdfgk.hjmdsf.ftvdolist.mvp.bean.XJLookResult;
import com.kjsdfgk.hjmdsf.live.mvp.bean.ResultLive;
import com.kjsdfgk.hjmdsf.live.mvp.bean.VersionEntity;
import com.kjsdfgk.hjmdsf.video.mvp.bean.ResultZhubo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;

public interface CommonService {
    //http://api.hclyz.com:81/mf/json.txt
    @GET()
    Observable<ResultLive> getPingTaiInfo(@Url String url);

    @GET
    Observable<ResultZhubo> getZhuboInfo(@Url String url );


    @GET("https://gitee.com/izywei/LiveMvp/raw/master/version.json")
    Observable<VersionEntity> checkVersion( );

    @FormUrlEncoded
    @POST("http://zb.yxds1.vip/api.php?act=user_reg&app=10000")
    Observable<RegJson> userReg(@Field("user") String user,@Field("password") String password,
                                @Field("markcode") String markcode,@Field("inv") int inv,@Field("t") long t);


    @FormUrlEncoded
    @POST("http://zb.yxds1.vip/api.php?act=user_logon&app=10000")
    Observable<AccountJson> userLogonApi(@Field("account") String account, @Field("password") String password,
                                         @Field("markcode") String markcode, @Field("t") long t);


//    http://zb.yxds1.vip/api.php?act=get_info

    @FormUrlEncoded
    @POST("http://zb.yxds1.vip/api.php?act=get_info&app=10000")
    Observable<AccountJson> getInfo(@Field("token") String token , @Field("t") long t);


    @FormUrlEncoded
    @POST("http://zb.yxds1.vip/api.php?act=card&app=10000")
    Observable<ResultJson> cardCharge(@Field("token") String token , @Field("kami") String kami , @Field("t") long t);


    @GET()
    Observable<XJVideoJson> typeSearch(@Url String url , @Query("uid") String uid, @Query("page") int page, @Query("limit") String limit, @Query("vod_big_class") String vod_big_class,
                                       @Query("vod_lang") String vod_lang, @Query("vod_source") String vod_source,
                                       @Query("vod_year") String vod_year, @Query("vod_actor_class") String vod_actor_class, @Query("vod_class") String vod_class,
                                       @Query("vod_area") String vod_area, @Query("vod_type") String vod_type, @Query("big_vod_class") String big_vod_class);


    @GET()
    Observable<XJLookResult> lookVod(@Url String url ,@Query("uid") String uid, @Query("vod_id") String vod_id);

    @GET
    Observable<String> meiZiTuIndex(@Url String url );



    @GET
    Observable<String> ccyyHtmlApi(@Url String url );//草草影院

    @GET
    Observable<JJKKTokenJson> getJJKKTokenJson(@Url String url );


    //    https://gitee.com/izywei/LiveMvp/raw/master/data/kjhfs100.json
    @GET
    Observable<KjhfsJson> getKjhfsDataApi(@Url String url );
}
